<%@ page language="java" import="java.util.*,cn.ac.cintcm.dataconverge.util.Constants" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:tvns>
<head>
    <title>Complex Layout</title>
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="<%=basePath%>index/Themes/com/style.css" rel="stylesheet" type="text/css"/>
    <script src="<%=basePath%>index/Scripts/Script.js" language="javascript" type="text/javascript"></script>
    <script type="text/javascript" src="<%=basePath%>index/Scripts/ext-base.js"></script>
    <script type="text/javascript" src="<%=basePath%>index/Scripts/ext-all.js"></script>
    <script type="text/javascript">
	Example = function(){
	        var layout;
	        return {
	            init : function(){
	               layout = new Ext.BorderLayout(document.body, { 
	                    west: {
	                        split:true,
	                        initialSize: 180,
	                        minSize: 175,
	                        maxSize: 400,
	                        titlebar: true,
	                        collapsible: true,
	                        animate: true
	                    },
	                   
	                    center: {
	                        titlebar: false,
	                        autoScroll:true,
	                        tabPosition: 'top',
	                        
                            closeOnTab: true
                        }
	                });
                    layout.beginUpdate();
	                layout.add('west', new Ext.ContentPanel('contrler', {title: '<b>&nbsp;&nbsp;立项审批</b>', fitToFrame:true, closable:false}));
                    layout.add('center', new Ext.ContentPanel('center', {title: '',fitToFrame:true, closable: false}));
	                layout.endUpdate();
	           }
	     };
	       
	}();
	Ext.EventManager.onDocumentReady(Example.init, Example, true);
    </script>

</head>
<body>
    <div id="container">
        <div id="center" class="x-layout-inactive-content">
            <iframe src="<%=path %>/achieve.htm?action=list" frameborder="0" width="100%" height="100%" scrolling="no" id="Riframe" name="Riframe"></iframe>
        </div>
        <div id="contrler" class="x-layout-inactive-content" style="padding: 5px;">
                      <?IMPORT NAMESPACE = TVNS IMPLEMENTATION = "../../Htcs/treeview.htc" />
            <tvns:treeview systemimagespath="../../Images/TreeImages/" selectednodeindex="0">
               <tvns:treenode   expanded="True" target="_self"
                    imageurl="../../Images/icon_s03_157.gif"> 
                   
                    <!-- tvns:treenode navigateurl="<%=path %>/achieve.htm?action=listMyAchieve" target="Riframe" expanded="True" imageurl="../../Themes/com/68design.net_play_16x16.gif">
					我的成果
                    </tvns:treenode--> 
                    <tvns:treenode navigateurl="<%=path %>/achieve.htm?action=list" target="Riframe" expanded="True" imageurl="../../Themes/com/68design.net_play_16x16.gif">
					成果管理
                    </tvns:treenode> 
                     <tvns:treenode navigateurl="<%=path %>/subject.htm?action=listSubjectAchieve" target="Riframe" expanded="True" imageurl="../../Themes/com/68design.net_play_16x16.gif">
					成果登记
                    </tvns:treenode> 
            </tvns:treeview>
        </div>
    </div>
</body>
</html>

<script language="javascript" type="text/javascript">
    var urlstr = document.location.toString();
	var valuestr="";
	var values;
	var tss = window.location.href.indexOf('?');
	if(tss>1){
		valuestr= unescape(urlstr.substring(urlstr.indexOf("?")+1,urlstr.length));
	    document.getElementById("Riframe").src=valuestr;
	}
</script>